Another Button Focus issue with setFocus()

It seems that when you use setFocus(), the light blue highlighting around one of your buttons does not match the button that has the focus.

Is there no way to fix this? This seems like a bug (using DOORS 9.3 something).

[EDIT - I should add that it is always the first button that shows the light blue highlighting]

Here is an example that shows the problem:

DBE A_button, B_button
void onApplyA(DB x){ print "A button pressed, setting focus to B button.\n"; setFocus(B_button) }
void onApplyB(DB x){ print "B button pressed, setting focus to A button.\n"; setFocus(A_button) }

DB main = centered("")
DBE label = label(main ,"TESTING:\n\nAt startup, focus set to B button.\nFocus is then set to opposite button when either A or B button pressed.")
A_button = apply(main ,"A Button",onApplyA)
B_button = apply(main ,"B Button",onApplyB)
realize main
setFocus(B_button)
show main

 


strathglass - Tue May 03 12:40:37 EDT 2016

Re: Another Button Focus issue with setFocus()
DOORSHAM - Tue May 03 13:25:12 EDT 2016

IBM probably would not consider this a bug since setFocus is doing as advertised i.e., help file says setFocus  Sets keyboard focus to the specified element.   Help file doesn't say anything about set visual impact.

Re: Another Button Focus issue with setFocus()
strathglass - Tue May 03 14:19:37 EDT 2016

Unfortunately this is not entirely consistent with Microsoft's GUI design principles (here).

However it is not entirely INconsistent in some ways too.

:)

 

Oh well

Re: Another Button Focus issue with setFocus()
DOORSHAM - Tue May 03 15:07:34 EDT 2016

strathglass - Tue May 03 14:19:37 EDT 2016

Unfortunately this is not entirely consistent with Microsoft's GUI design principles (here).

However it is not entirely INconsistent in some ways too.

:)

 

Oh well

I don't think there is any love lost between Microsoft & IBM.  One will spit in the eye of the other.